namespace nu.Model
{
    using System.Collections.Generic;

    public class PublishedPackageState : PackageStateBase
    {
        public PublishedPackageState(Package package) : base(package) {}

        public override string Name
        {
            get { return "Published"; }
        }

        public override PackageItem AddFileItem(string filePath, List<PackageItem> items)
        {
            throw new PackageLockedException(Package.Name);
        }
    }
}